#pragma once
#include "Mini_link.h"

class Link
{
	int length;
	int amount;
	int esc;
	int *context;
	Link *predok;
	Mini_link *first;
public:
	Link *left;
	Link *right;
	int balance;
	Link (int length, int *context, Link *predok = NULL);
	void Update (int sym);
	int comparison (Link* cur);
	int GetLength ();
	Link * GetPred ();
	int * GetCont ();
	int GetEsc ();
	Mini_link * GetFirst ();
	~Link ();
};